package com.yinhai.model;

import java.io.Serializable;

import android.graphics.Bitmap;

import com.yinhai.util.NullUtils;

public class MessageBean implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = -6097039750457168646L;
	private String name;
	private String date;
	private String text;
	private int layoutID;//1是其他人发送的短信的2是自己发送的短信
	private String id;
	private String filePath="";
	private String type;//"2" 是彩信
	private Bitmap bitmap;

	public String getFilePath() {
		return filePath;
	}

	public void setFilePath(String filePath) {
		this.filePath = filePath;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public MessageBean(){
	}
	
	public MessageBean(String name, String date, String text, int layoutID){
		super();
		this.name = name;
		this.date = date;
		this.text = text;
		this.layoutID = layoutID;
	}
	public MessageBean(String name, String date, String text, int layoutID,String id){
		super();
		this.name = name;
		this.date = date;
		this.text = text;
		this.layoutID = layoutID;
		this.id=id;
	}
	public String getName(){
		return name;
	}

	public void setName(String name){
		this.name = name;
	}

	public String getDate(){
		return date;
	}

	public void setDate(String date){
		this.date = date;
	}

	public String getText(){
	    if (NullUtils.isEmpty(text)) {
            text="";
        }
		return text;
	}

	public void setText(String text){
		this.text = text;
	}

	public int getLayoutID(){
		return layoutID;
	}

	public void setLayoutID(int layoutID){
		this.layoutID = layoutID;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

    public Bitmap getBitmap() {
        return bitmap;
    }

    public void setBitmap(Bitmap bitmap) {
        this.bitmap = bitmap;
    }
	
}
